<?php
namespace app\common\config\validate;


use think\Validate;

class ConfigStoreHallValidate extends Validate
{
    protected $rule = [
        'id' => ['require'],
        'store_id' => ['require'],
        'title' => ['require'],
        'tables' => ['require'],
        'height' => ['require'],
        'area' => ['require'],
        'pillar' => ['require'],
        'shape' => ['require'],
        'banquet_banner' => ['require'],
        'banquet_album' => ['require'],
        'birthday_banner' => ['require'],
        'birthday_album' => ['require'],
        'meeting_banner' => ['require'],
        'meeting_album' => ['require'],
    ];

    protected $message = [
        'id.require' => '参数错误',
        'store_id.require' => '参数错误',
        'title.require' => '房间名称不能为空',
        'tables.require' => '请输入宴会厅容纳桌数',
        'height.require' => '请输入宴会厅高度',
        'area.require' => '请输入宴会厅面积',
        'pillar.require' => '请输入宴会厅立柱高度',
        'shape.require' => '请输入宴会厅形状',
        'banquet_banner.require' => '请输入宴会厅婚宴横幅',
        'banquet_album.require' => '请输入宴会厅婚宴相册',
        'birthday_banner.require' => '请输入宴会厅生日横幅',
        'birthday_album.require' => '请输入宴会厅生日相册',
        'meeting_banner.require' => '请输入宴会厅会议横幅',
        'meeting_album.require' => '请输入宴会厅会议相册',
    ];

    protected $scene = [
        'create' => ['title', 'store_id', 'tables', 'height', 'area', 'pillar', 'shape', 'banquet_banner', 'banquet_album', 'birthday_banner', 'birthday_album', 'meeting_banner', 'meeting_album'],
        'edit' => ['id','title', 'store_id', 'tables', 'height', 'area', 'pillar', 'shape', 'banquet_banner', 'banquet_album', 'birthday_banner', 'birthday_album', 'meeting_banner', 'meeting_album'],
        'delete' => ['id'],
    ];
}